package Mangos::DB::Mangos::PoolGameobject;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'pool_gameobject',

    columns => 
    [
        guid        => { type => 'integer', not_null => 1 },
        pool_entry  => { type => 'integer', not_null => 1 },
        chance      => { type => 'float', default => '0', not_null => 1, precision => 32 },
        description => { type => 'varchar', length => 255, not_null => 1 },
    ],

    primary_key_columns => [ 'guid', 'pool_entry' ],
);

1;

package Mangos::DB::Mangos::PoolGameobject::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::PoolGameobject' }

__PACKAGE__->make_manager_methods('pool_gameobject');

1;
